package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**
     * 查询套餐中是否包含要删除的菜品
     * @param id
     * @return
     */
    @Select("select count(*) from setmeal_dish where dish_id=#{id}")
    Integer  selectDishId(Long id);

    void delete(List<Long> ids);

}
